#include <iostream>
#include <stdlib.h>

using namespace std;

void leften(int count,char *a){
	for (int j=0;j<count;j++){
		if(*(a+j)=='a'||*(a+j)=='b'||*(a+j)=='c'){
			*(a+j)=(*(a+j)-3-'a')%26+'a'+26;
			continue;
		}
		else{
			*(a+j)=*(a+j)-3;
		}
	}
	
	
	
} 

void invert(int count,char *a){
	char temp;
	for (int i=0;i<count/2;i++){
		temp=a[i];
		a[i]=a[count-1-i];
		a[count-1-i]=temp;
	}
}

void diverse(int count,char *a){
	for (int i=0;i<count;i++){
		if(a[i]>='a'){
			a[i]-=32;
		}
		else{
			a[i]+=32;
		}
	}
}

int input(int count,char *a){
	
	count=0;
	for (int i=0;i<100;i++){
		*(a+i)=getchar();
		if(*(a+i)=='\n')
			break;
		count++;
	}
	return count;
}

void output(int count,char *a){
	for (int i=0;i<count;i++){
		cout<<a[i];
	}
}

void secret(){
	int count;
	
	char *a=(char *)malloc(sizeof(char *)); 
	count=input(count,a);
	leften(count,a);
	invert(count,a);
	diverse(count,a);
	output(count,a);
}



int main (void){
	secret();
	return 0;
}
